package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MKT_PAYMENT_RECEIPT_DETAILS database table.
 * 
 */
@Entity
@Table(name="MKT_PAYMENT_RECEIPT_DETAILS")
@NamedQueries({
    @NamedQuery(name = "MktPaymentReceiptDetail.findAll", query = " SELECT c FROM MktPaymentReceiptDetail c "),
    @NamedQuery(name = "MktPaymentReceiptDetail.findById", query = " SELECT c FROM MktPaymentReceiptDetail c WHERE c.id = :Id "),
    @NamedQuery(name = "MktPaymentReceiptDetail.findByStatus", query = " SELECT c FROM MktPaymentReceiptDetail c WHERE c.syncIssync = 'N'"),
})
public class MktPaymentReceiptDetail extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private MktPaymentReceiptDetailPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="AMOUNT_RECEIVED")
	private BigDecimal amountReceived;

	@Column(name="BANK_CARD_READER")
	private String bankCardReader;

	@Column(name="BANK_CHARGE")
	private BigDecimal bankCharge;

	@Column(name="BANK_RATE")
	private BigDecimal bankRate;

	@Column(name="BRANCH_CODE")
	private String branchCode;

	@Column(name="CHARGE_CODE")
	private String chargeCode;

	@Column(name="CHEQUE_AMOUNT")
	private BigDecimal chequeAmount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CHEQUE_DUE_DATE")
	private Date chequeDueDate;

	@Column(name="CHEQUE_ISSUING_BANK")
	private String chequeIssuingBank;

	@Column(name="CHEQUE_NUMBER")
	private String chequeNumber;

	@Column(name="CHEQUE_PAYEE_AC")
	private String chequePayeeAc;

	@Column(name="CHEQUE_PAYER_AC_NO")
	private String chequePayerAcNo;

	@Column(name="CONTRACT_NO")
	private BigDecimal contractNo;

	@Column(name="CONTRACT_SEQ")
	private BigDecimal contractSeq;

	@Column(name="CONTRACT_SERIES")
	private String contractSeries;

	@Column(name="CREDIT_CARD_TYPE")
	private String creditCardType;

	@Column(name="FLAG_CHARGE")
	private String flagCharge;

	@Column(name="FROM_BUILDING_PHASE_CODE")
	private String fromBuildingPhaseCode;

	@Column(name="FROM_FLOOR_ZONE_CODE")
	private String fromFloorZoneCode;

	@Column(name="FROM_PROJECT")
	private String fromProject;

	@Column(name="FROM_UNIT_NUMBER")
	private String fromUnitNumber;

	@Column(name="INSTALLMENT_NUMBER")
	private BigDecimal installmentNumber;

	@Column(name="INSTALLMENT_SEQ")
	private BigDecimal installmentSeq;

	@Column(name="PAYMENT_TYPE")
	private String paymentType;

	private String project;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RECEIPT_DATE")
	private Date receiptDate;

	@Column(name="RECEIVED_TYPE")
	private String receivedType;

	@Column(name="REVISION_NUMBER")
	private BigDecimal revisionNumber;

	private String status;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_RECEIPTED_D_PK_ID")
	private String syncReceiptedDPkId;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TYPE_OF_CONTRACT")
	private String typeOfContract;

	@Column(name="VAT_AMOUNT")
	private BigDecimal vatAmount;

	@Column(name="VAT_CODE")
	private String vatCode;

	@Column(name="VAT_RATE")
	private BigDecimal vatRate;

	@Column(name="VOUCHER_NUMBER")
	private BigDecimal voucherNumber;

	@Column(name="VOUCHER_SERIES")
	private String voucherSeries;

	@Column(name="VOUCHER_TYPE")
	private String voucherType;

	@Column(name="WHT_AMOUNT")
	private BigDecimal whtAmount;

	@Column(name="WHT_RATE")
	private BigDecimal whtRate;

	@Column(name="WHT_SUBCODE")
	private String whtSubcode;

	@Column(name="WHT_TYPE")
	private String whtType;

	public MktPaymentReceiptDetail() {
	}

	public MktPaymentReceiptDetailPK getId() {
		return this.id;
	}

	public void setId(MktPaymentReceiptDetailPK id) {
		this.id = id;
	}

	public BigDecimal getAmountReceived() {
		return this.amountReceived;
	}

	public void setAmountReceived(BigDecimal amountReceived) {
		this.amountReceived = amountReceived;
	}

	public String getBankCardReader() {
		return this.bankCardReader;
	}

	public void setBankCardReader(String bankCardReader) {
		this.bankCardReader = bankCardReader;
	}

	public BigDecimal getBankCharge() {
		return this.bankCharge;
	}

	public void setBankCharge(BigDecimal bankCharge) {
		this.bankCharge = bankCharge;
	}

	public BigDecimal getBankRate() {
		return this.bankRate;
	}

	public void setBankRate(BigDecimal bankRate) {
		this.bankRate = bankRate;
	}

	public String getBranchCode() {
		return this.branchCode;
	}

	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}

	public String getChargeCode() {
		return this.chargeCode;
	}

	public void setChargeCode(String chargeCode) {
		this.chargeCode = chargeCode;
	}

	public BigDecimal getChequeAmount() {
		return this.chequeAmount;
	}

	public void setChequeAmount(BigDecimal chequeAmount) {
		this.chequeAmount = chequeAmount;
	}

	public Date getChequeDueDate() {
		return this.chequeDueDate;
	}

	public void setChequeDueDate(Date chequeDueDate) {
		this.chequeDueDate = chequeDueDate;
	}

	public String getChequeIssuingBank() {
		return this.chequeIssuingBank;
	}

	public void setChequeIssuingBank(String chequeIssuingBank) {
		this.chequeIssuingBank = chequeIssuingBank;
	}

	public String getChequeNumber() {
		return this.chequeNumber;
	}

	public void setChequeNumber(String chequeNumber) {
		this.chequeNumber = chequeNumber;
	}

	public String getChequePayeeAc() {
		return this.chequePayeeAc;
	}

	public void setChequePayeeAc(String chequePayeeAc) {
		this.chequePayeeAc = chequePayeeAc;
	}

	public String getChequePayerAcNo() {
		return this.chequePayerAcNo;
	}

	public void setChequePayerAcNo(String chequePayerAcNo) {
		this.chequePayerAcNo = chequePayerAcNo;
	}

	public BigDecimal getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(BigDecimal contractNo) {
		this.contractNo = contractNo;
	}

	public BigDecimal getContractSeq() {
		return this.contractSeq;
	}

	public void setContractSeq(BigDecimal contractSeq) {
		this.contractSeq = contractSeq;
	}

	public String getContractSeries() {
		return this.contractSeries;
	}

	public void setContractSeries(String contractSeries) {
		this.contractSeries = contractSeries;
	}

	public String getCreditCardType() {
		return this.creditCardType;
	}

	public void setCreditCardType(String creditCardType) {
		this.creditCardType = creditCardType;
	}

	public String getFlagCharge() {
		return this.flagCharge;
	}

	public void setFlagCharge(String flagCharge) {
		this.flagCharge = flagCharge;
	}

	public String getFromBuildingPhaseCode() {
		return this.fromBuildingPhaseCode;
	}

	public void setFromBuildingPhaseCode(String fromBuildingPhaseCode) {
		this.fromBuildingPhaseCode = fromBuildingPhaseCode;
	}

	public String getFromFloorZoneCode() {
		return this.fromFloorZoneCode;
	}

	public void setFromFloorZoneCode(String fromFloorZoneCode) {
		this.fromFloorZoneCode = fromFloorZoneCode;
	}

	public String getFromProject() {
		return this.fromProject;
	}

	public void setFromProject(String fromProject) {
		this.fromProject = fromProject;
	}

	public String getFromUnitNumber() {
		return this.fromUnitNumber;
	}

	public void setFromUnitNumber(String fromUnitNumber) {
		this.fromUnitNumber = fromUnitNumber;
	}

	public BigDecimal getInstallmentNumber() {
		return this.installmentNumber;
	}

	public void setInstallmentNumber(BigDecimal installmentNumber) {
		this.installmentNumber = installmentNumber;
	}

	public BigDecimal getInstallmentSeq() {
		return this.installmentSeq;
	}

	public void setInstallmentSeq(BigDecimal installmentSeq) {
		this.installmentSeq = installmentSeq;
	}

	public String getPaymentType() {
		return this.paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public Date getReceiptDate() {
		return this.receiptDate;
	}

	public void setReceiptDate(Date receiptDate) {
		this.receiptDate = receiptDate;
	}

	public String getReceivedType() {
		return this.receivedType;
	}

	public void setReceivedType(String receivedType) {
		this.receivedType = receivedType;
	}

	public BigDecimal getRevisionNumber() {
		return this.revisionNumber;
	}

	public void setRevisionNumber(BigDecimal revisionNumber) {
		this.revisionNumber = revisionNumber;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncReceiptedDPkId() {
		return this.syncReceiptedDPkId;
	}

	public void setSyncReceiptedDPkId(String syncReceiptedDPkId) {
		this.syncReceiptedDPkId = syncReceiptedDPkId;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getTypeOfContract() {
		return this.typeOfContract;
	}

	public void setTypeOfContract(String typeOfContract) {
		this.typeOfContract = typeOfContract;
	}

	public BigDecimal getVatAmount() {
		return this.vatAmount;
	}

	public void setVatAmount(BigDecimal vatAmount) {
		this.vatAmount = vatAmount;
	}

	public String getVatCode() {
		return this.vatCode;
	}

	public void setVatCode(String vatCode) {
		this.vatCode = vatCode;
	}

	public BigDecimal getVatRate() {
		return this.vatRate;
	}

	public void setVatRate(BigDecimal vatRate) {
		this.vatRate = vatRate;
	}

	public BigDecimal getVoucherNumber() {
		return this.voucherNumber;
	}

	public void setVoucherNumber(BigDecimal voucherNumber) {
		this.voucherNumber = voucherNumber;
	}

	public String getVoucherSeries() {
		return this.voucherSeries;
	}

	public void setVoucherSeries(String voucherSeries) {
		this.voucherSeries = voucherSeries;
	}

	public String getVoucherType() {
		return this.voucherType;
	}

	public void setVoucherType(String voucherType) {
		this.voucherType = voucherType;
	}

	public BigDecimal getWhtAmount() {
		return this.whtAmount;
	}

	public void setWhtAmount(BigDecimal whtAmount) {
		this.whtAmount = whtAmount;
	}

	public BigDecimal getWhtRate() {
		return this.whtRate;
	}

	public void setWhtRate(BigDecimal whtRate) {
		this.whtRate = whtRate;
	}

	public String getWhtSubcode() {
		return this.whtSubcode;
	}

	public void setWhtSubcode(String whtSubcode) {
		this.whtSubcode = whtSubcode;
	}

	public String getWhtType() {
		return this.whtType;
	}

	public void setWhtType(String whtType) {
		this.whtType = whtType;
	}

}